
import { ApiPropertyOptional } from '@nestjs/swagger';

export class PostReqDto {
    @ApiPropertyOptional({ required: false, description: '文章标题' })
    id?: number;

    @ApiPropertyOptional({ required: false, description: '文章标题' })
    title?: string;

    @ApiPropertyOptional({ required: false, description: '文章分类id' })
    categoryId?: number;

    @ApiPropertyOptional({ required: false, description: '文章标签id' })
    tagIds?: number[];

    @ApiPropertyOptional({ required: false, description: '一页显示多少条' })
    readonly pageSize?: number;
  
    @ApiPropertyOptional({ required: false, description: '当前页' })
    readonly pageNum?: number;
}
